package com.hww.client.controller;

import com.hww.client.model.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: Wenwu Huang
 * @Date: 2019/12/30 18:18
 */
@RestController
public class ClientController {

    @GetMapping("hello")
    public String hello(){
        return "hello";
    }

    @PostMapping("save")
    public String save(User user){
        System.out.println(user);
        return "ok";
    }
}
